package cn.Entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@TableName("job")
public class Job implements Serializable {

    @TableId(value = "jobName")
    //作业名称
    private String jobName;
    //作业组名
    private String jobGroup;
    //开关状态
    private Boolean status;
    //参数表达式
    private String cronExpression;
    //描述
    private String description;
    //任务执行时调用哪个类的方法（包名+类名）
    private String beanClass;
    //有效状态
    private Boolean isValidate;
    //开始时间
    private Date startTime;
    //结束时间
    private Date endTime;
    //创建时间
    private Date creatTime;
}